#include "main.h"
#include "debug.h"
int fputc(int ch, FILE *f)
{
    //HAL_UART_Transmit(&huart1, (const unsigned char *)&ch, 1, 1000);
    LL_USART_TransmitData8(USART1, ch);
  /* Wait for TC flag to be raised for last char */
  while (!LL_USART_IsActiveFlag_TC(USART1))
  {
  }
    return 0;
}
